package com.wooophone.mpyeah.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.wooophone.mpyeah.biz.BrandCommentReplyBiz;
import com.wooophone.mpyeah.biz.exception.CannotDeleteException;
import com.wooophone.mpyeah.dao.BrandCommentReplyDao;
import com.wooophone.mpyeah.entity.BrandCommentReply;

public class BrandCommentReplyBizImpl implements BrandCommentReplyBiz {

	@Autowired
	private BrandCommentReplyDao brandCommentReplyDao;

	public void setBrandCommentReplyDao(
			BrandCommentReplyDao BrandCommentReplyDao) {
		this.brandCommentReplyDao = BrandCommentReplyDao;
	}

	@Override
	public BrandCommentReply save(BrandCommentReply obj) {
		return brandCommentReplyDao.save(obj);
	}

	@Override
	public int update(BrandCommentReply obj) {
		return brandCommentReplyDao.update(obj);
	}

	@Override
	public int delete(String id) throws CannotDeleteException {
		return brandCommentReplyDao.delete(id);
	}

	@Override
	public BrandCommentReply get(String id) {
		return brandCommentReplyDao.get(id);
	}

	@Override
	public List<BrandCommentReply> list() {
		return brandCommentReplyDao.list();
	}

	@Override
	public List<BrandCommentReply> list(int offset, int limit) {
		return brandCommentReplyDao.list(offset, limit);
	}

	@Override
	public int count() {
		return brandCommentReplyDao.count();
	}

	@Override
	public List<BrandCommentReply> find(Map<String, Object> parameter) {
		return brandCommentReplyDao.find(parameter);
	}

	@Override
	public List<BrandCommentReply> find(Map<String, Object> parameter,
			int offset, int limit) {
		return brandCommentReplyDao.find(parameter,offset,limit);
	}

	@Override
	public int count(Map<String, Object> parameter) {
		return brandCommentReplyDao.count(parameter);
	}

	@Override
	public int count(String keyword) {
		return brandCommentReplyDao.count(keyword);
	}

	@Override
	public List<BrandCommentReply> search(String keyword, int offset, int limit) {
		return brandCommentReplyDao.search(keyword, offset, limit);
	}

}
